// pages/order/component/order-item.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    itemData: Object,
    
  },

  observers: {
    'itemData'(itemData) {
      this.updateData()
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    // address: String,
    // upDataString: '',
    // downDataString: '',
  },

  lifetimes: {
    attached() {
      this.updateData()
    },

    ready: function() {
    },

    moved: function() {
    },
    
    detached: function() {
    },
  },

  /**
   * 组件的方法列表
   */
  methods: {
    updateData: function() {
    },

    handleToDetail(e) {
      this.triggerEvent("recordDetailEvent", e.currentTarget.id)
    },

    handleToDelete(e) {
      console.log(e)
      this.triggerEvent("recordDeleteEvent", e.currentTarget.id)
    }

  }
})